<?php
define( '_JEXEC', 1 );
define( '_VALID_MOS', 1 );
// if you app is placed into a subfolder in Joomla root, the path will look like dirname(__FILE__) . '/..'
define( 'JPATH_BASE', realpath(dirname(__FILE__) .'/../innovation/' ) );// eventualmente indicare il percorso della root di joomla
define( 'DS', DIRECTORY_SEPARATOR );

require_once ( JPATH_BASE .DS.'includes'.DS.'defines.php' );
require_once ( JPATH_BASE .DS.'includes'.DS.'framework.php' );

$mainframe =& JFactory::getApplication('site');
$mainframe->initialise();

$user =& JFactory::getUser();
// RECUPERO lo username dell'utente e inizializzo la variabile $utente
$utente = $user->username;//
?>
<h1><?php echo($utente);?></h1>